<?php if($sf_user->hasAttribute($nombreSession)): ?>
    <?php $listaSession = $sf_user->getAttribute($nombreSession); ?>
            <table id="resultadoescala" >
                                         <tr  class="cabeceraDetalle">
                                           <td style="width: 160px;" >De </td>
                                            <td style="width: 160px;">Hasta</td>
                                            <td style="width: 170px;">Porcentaje(%)</td>
                                            <td style="width: 100px;">Opciones</td>
                                            <td ></td>

                                    </tr>


   
        <?php  foreach($listaSession as $obj){ ?>
            <tr  id="filaEscala-<?php echo $obj['id']; ?>">
                                        <td style="width: 160px;text-align: center"> <label id="lblprimeraescala-<?php echo $obj['id']; ?>"><?php echo $obj['primeraescala'] ?></label> <input type="text" style="display: none;text-align: center;width: 170px" id="txtprimeraescala-<?php echo $obj['id']; ?>" /> </td>
                                        <td style="width: 160px;text-align: center"><label id="lblsegundaescala-<?php echo $obj['id']; ?>"><?php echo $obj['segundaescala'] ?></label> <input type="text" style="display: none;width: 170px;text-align: center;"  id="txtsegundaescala-<?php echo $obj['id']; ?>"/></td>
                                        <td style="width: 170px;text-align: center"><label id="lblporcentajeescala-<?php echo $obj['id']; ?>"><?php echo $obj['porcentajeescala'] ?></label> <input type="text" style="display: none;width: 130px;text-align: center;" id="txtporcentajeescala-<?php echo $obj['id']; ?>" /></td>
                <td style="width: 165px;"><a title="grabar" style="display: none;" id="grabarEscala-<?php echo $obj['id']; ?>" href="javascript:editarDetalleEscala(<?php echo $obj['id']; ?>);"><?php echo image_tag('icon_save.png') ?></a><a id="editarEscala-<?php echo $obj['id']; ?>" href="javascript:changeFormatTextEscala(<?php echo $obj['id']; ?>)"><?php echo image_tag('icon_edit.png') ?></a>&nbsp;&nbsp;&nbsp;&nbsp;<a id="eliminar" href="javascript:eliminarDetalleEscala(<?php echo $obj['id']; ?>)"><?php echo image_tag('icon_delete.png') ?></a></td>
            </tr>
         <?php }; ?>
         </table>



<?php else: ?>
<h3>Ups algo se rompio :( </h3>
<?php endif; ?>